package com.yungu.swift.socket.communication.message;

import com.yungu.swift.socket.communication.message.base.Message;
import com.yungu.swift.socket.communication.message.base.MessageType;

/**
 * 司机端上传定位点报文
 *
 * @author Zerrion
 * @date 2018/3/12
 */
public class UploadLocationResponseMessage extends Message {

    private String locationUuid;
    private String orderUuid;
    private Double totalFare;
    private Boolean success;
    private String msg;

    public UploadLocationResponseMessage(String locationUuid, Double totalFare, boolean success, String msg) {
        super();
        super.setType(MessageType.UPLOAD_LOCATION_RESPONSE);
        this.totalFare = totalFare;
        this.locationUuid = locationUuid;
        this.success = success;
        this.msg = msg;
    }

    public UploadLocationResponseMessage(String clientUuid, String locationUuid, String orderUuid, Double totalFare, Boolean success, String msg) {
        super(MessageType.UPLOAD_LOCATION_RESPONSE, clientUuid);
        this.locationUuid = locationUuid;
        this.orderUuid = orderUuid;
        this.totalFare = totalFare;
        this.success = success;
        this.msg = msg;
    }

    public String getLocationUuid() {
        return locationUuid;
    }

    public void setLocationUuid(String locationUuid) {
        this.locationUuid = locationUuid;
    }

    public String getOrderUuid() {
        return orderUuid;
    }

    public void setOrderUuid(String orderUuid) {
        this.orderUuid = orderUuid;
    }

    public Double getTotalFare() {
        return totalFare;
    }

    public void setTotalFare(Double totalFare) {
        this.totalFare = totalFare;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
